package com.xinjie.www.dao.collect;

import com.xinjie.www.po.Collect;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

public interface CollectDao {
    //进行收藏
    public int doCollect(Connection connection,int postId,int userId,String time) throws SQLException;
    //获取收藏
    public List<Collect> getCollect(Connection connection, int userId) throws SQLException;
    //取消收藏
    public int cancelCollect(Connection connection,int collectId) throws SQLException;
}
